home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17947 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  25 lines

  1. Newsgroups: comp.os.ms-windows.programmer.tools.misc,comp.os.ms-windows.programmer.win32,comp.os.ms-windows.programmer.misc,comp.lang.c++
  2. Path: netcom.com!woerner
  3. From: woerner@netcom.com (Rob Woerner)
  4. Subject: Re: [Q] Why doesn't this compile?
  5. Message-ID: <woernerDq1299.Fup@netcom.com>
  6. Organization: Netcom Online Communications Services (408-241-9760 login: guest)
  7. References: <317523C0.5042@eps.agfa.be> <4l3e5l$e1t@druid.borland.com>
  8. Date: Wed, 17 Apr 1996 22:24:44 GMT
  9. Sender: woerner@netcom.netcom.com
  10.  
  11. In article <4l3e5l$e1t@druid.borland.com> pete@borland.com (Pete Becker) writes:
  12. >In article <317523C0.5042@eps.agfa.be>, rorlic@eps.agfa.be says...
  13. >>
  14. [snip]
  15. >>
  16. >>Anybody knows what's wrong with it?
  17. >
  18. >There's nothing wrong with it. The problem is in your compiler.
  19. >    -- Pete
  20. >
  21.  
  22. I agree. However, you can work around it by declaring L outside of A, and
  23. changing the name of B::L to (say) B::W. The way it is has a hidden 'L', inherited from A, but masked by B::L.
  24. I think it is confused by the 2 consecutive '::' operators.
  25.